package com.worthtech.billportal.bean;

/**
 * WtTrainsLimitId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class WtTrainsLimitId implements java.io.Serializable {

	// Fields

	private String transType;
	private String transBillno;
	private String transCode;
	private String transCorp;

	// Constructors

	/** default constructor */
	public WtTrainsLimitId() {
	}

	/** full constructor */
	public WtTrainsLimitId(String transType, String transBillno,
			String transCode, String transCorp) {
		this.transType = transType;
		this.transBillno = transBillno;
		this.transCode = transCode;
		this.transCorp = transCorp;
	}

	// Property accessors

	public String getTransType() {
		return this.transType;
	}

	public void setTransType(String transType) {
		this.transType = transType;
	}

	public String getTransBillno() {
		return this.transBillno;
	}

	public void setTransBillno(String transBillno) {
		this.transBillno = transBillno;
	}

	public String getTransCode() {
		return this.transCode;
	}

	public void setTransCode(String transCode) {
		this.transCode = transCode;
	}

	public String getTransCorp() {
		return this.transCorp;
	}

	public void setTransCorp(String transCorp) {
		this.transCorp = transCorp;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof WtTrainsLimitId))
			return false;
		WtTrainsLimitId castOther = (WtTrainsLimitId) other;

		return ((this.getTransType() == castOther.getTransType()) || (this
				.getTransType() != null
				&& castOther.getTransType() != null && this.getTransType()
				.equals(castOther.getTransType())))
				&& ((this.getTransBillno() == castOther.getTransBillno()) || (this
						.getTransBillno() != null
						&& castOther.getTransBillno() != null && this
						.getTransBillno().equals(castOther.getTransBillno())))
				&& ((this.getTransCode() == castOther.getTransCode()) || (this
						.getTransCode() != null
						&& castOther.getTransCode() != null && this
						.getTransCode().equals(castOther.getTransCode())))
				&& ((this.getTransCorp() == castOther.getTransCorp()) || (this
						.getTransCorp() != null
						&& castOther.getTransCorp() != null && this
						.getTransCorp().equals(castOther.getTransCorp())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getTransType() == null ? 0 : this.getTransType().hashCode());
		result = 37
				* result
				+ (getTransBillno() == null ? 0 : this.getTransBillno()
						.hashCode());
		result = 37 * result
				+ (getTransCode() == null ? 0 : this.getTransCode().hashCode());
		result = 37 * result
				+ (getTransCorp() == null ? 0 : this.getTransCorp().hashCode());
		return result;
	}

}